package com.pkx.cloud.fse7.dms.monitoring.feign;

import com.alibaba.fastjson.JSONObject;
import com.pkx.cloud.fse7.dms.monitoring.entity.RemoteOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description
 * @Author chenwg
 * @date 2020.10.15 13:08
 */
@FeignClient(value = "RemoteOrder", url = "${pkx.base-url}/api")
public interface RemoteOrderFeign {

    @PostMapping("/Monitoring/RemoteOrder")
    String open(@RequestBody RemoteOrder remoteOrder);

    @PostMapping(value = "/OperationMark/GetByFunc")
    String getByFunc(@RequestBody JSONObject jsonObject);

    @PostMapping("/MonitorStatus/GetByCustom")
    String getByCustom(@RequestBody JSONObject jsonObject);
}
